/*package controllers;

import java.util.Date;
import java.util.List;

import models.Event;

import models.User;
import play.cache.Cache;
import play.mvc.Controller;

public class ModelTest extends Controller {

	public static String index() {
		
		
		System.out.println("----------------------------------------------------");
		List<User> users = User.findAll();
		for(User u : users) {
			for(Event e: u.participation) {
				System.out.println(String.format("%s is participating-a to %s", 
				u.name, e.name));
			}
		}
		
		System.out.println("----------------------------------------------------");
		// a different way to get the participation!
		List<Event> events = Event.findAll();
		for(Event e : events) {
			for(User u: e.participants) {
				System.out.println(String.format("%s is participating to %s", 
				u.name, e.name));
			}
		}
		
		
		System.out.println("----------------------------------------------------");
		for(User u : users) {
			for(Event e: u.createdEvents) {
				System.out.println(String.format("%s has created %s", 
				u.name, e.name));
			}
		}
		
		System.out.println("----------------------------------------------------");
		// a different way to get the authors!
		for(Event e : events) {
			System.out.println(String.format("%s has created %s", 
					e.author.name, e.name));
		}
		
		return "look at the console output";
	}
}
*/